<div class="row-fluid">
<?php echo $this->Form->create('Email', array(
	'url' => array('controller' => 'settings', 'action' => 'config', 'admin' => true),
	'class' => 'form-horizontal',
	'inputDefaults' => array('label' => false, 'div' => 'controls')
))?>
	<fieldset>
		<legend><?php echo __('Mail Config') ?></legend>
		<div class="control-group">
			<label class="control-label" for="host">Host</label>
			<?php echo $this->Form->input('host', array(
				'id' => 'host',
				'class' => 'input-medium',
			))?>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="username">Username</label>
			<?php echo $this->Form->input('username', array(
				'class' => 'input-medium',
			))?>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="pwd">Password</label>
			<?php echo $this->Form->input('pwd', array(
				'id' => 'pwd',
				'class' => 'input-medium',
				'type' => 'password'
			))?>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="port">Port</label>
			<?php echo $this->Form->input('port', array(
				'id' => 'port',
				'class' => 'input-mini',
			))?>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="timeout">Timeout</label>
			<?php echo $this->Form->input('timeout', array(
				'id' => 'timeout',
				'class' => 'input-mini',
			))?>
		</div>
		
		<div class="form-actions">
			<?php echo $this->Form->button('<i class="icon-pencil"></i> '.__('Submit'), array(
					'class' => 'btn btn-primary',
					'type' => 'submit',
					'value' => 'clicked',
					'name' => 'data[Submit]'
			))?>
			<?php echo $this->Form->button('<i class="icon-refresh"></i> '.__('Reset'), array( 
					'class' => 'btn',
					'type' => 'reset'
			))?>
		</div>
	</fieldset>

<?php echo $this->Form->end();?>
</div>